package UIFree.graphicTools.color
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	public class uif_previewColorSpot extends uif_ecomponent {
		public static var DEFAULTCOLOR: uint = 0x888888;
		public function uif_previewColorSpot(parent:uif_component, ax:int=0, ay:int=0, aRadius: Number=20, styleClass:Object='') {
			super(parent, ax, ay, aRadius, aRadius, styleClass);
			color = DEFAULTCOLOR;
		}
		
		public function get color(): uint {
			return style.fill_color; 
		}
		
		public function set color(a_color: uint): void {
			style.fill_color = a_color;
			style.fill_alpha = 1;
			repaint();
		}
	}
}